import request from '@/utils/request'
import { downFile } from '@/utils/request'

export function getWorksortList(query) {
  return request({
    url: '/mes/md/Worksort/list',
    method: 'get',
    params: query,
  })
}

export function insertWorksort(data) {
  return request({
    url: '/mes/md/Worksort/addWorksort',
    method: 'post',
    data: data,
    contextType:"application/json"
  })
}


export function updateWorksort(data) {
  return request({
    url: '/mes/md/Worksort/updateWorksort',
    method: 'post',
    data: data,
    contextType:"application/json"
  })
}


export function delWorksort(data) {
  return request({
    url: '/mes/md/Worksort/delWorksort',
    method: 'post',
    data: data,
    contextType:"application/json"
  })
}
